#ifndef AUTHORIZATION_H
#define AUTHORIZATION_H

#include <QtGui>
#include <QtNetwork>
#include "ui_authorization.h"

class authorization : public QDialog
{
	Q_OBJECT

public:
	authorization(QWidget *parent = 0);
	~authorization();
	QTcpSocket *tcpSocket;
	QDataStream inStream;

	Ui::authorization ui;
	void readConf();
	void readUsersList();
	void getNewUsersList();
	
	QString addres;
	int port;
	int lastEnter;
	QString versionUsersList;

private slots:
	void checkPass();
	void sendPassword();
	void checkVersionUsersList();
};

#endif // AUTHORIZATION_H
